package com.tanhua.dubbo.api.db;

import cn.hutool.core.lang.ObjectId;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.model.db.User;
import com.tanhua.model.db.UserInfo;
import com.tanhua.model.vo.*;

import java.util.List;
import java.util.Map;

public interface UserInfoApi {

    Long AddUserInfo(UserInfo userInfo);

    void updeteUser(UserInfo userInfo);

    UserInfo getuserinfo(Long userId, Long huanxinId);

    void updeteByuserId(UserInfoVo userInfoVo);

    void updateAvatar(UserInfo userInfo);

    SettingsVo getsetting(User user);

    PageResult<UserInfoVoAge> getbalckList(Long userID, Long page, Long pagesize);

    void deleteByid(Long uid);

    Map<Long, UserInfo> getUserList( List<Long> userIds, UserInfo condition);

    List<UserInfo> getAllUser(Long userId);

    List<UserInfo> getUsersByid(List<Long> ids);

    Page<UserInfo> getUsers(Long page, Long pagesize);

}
